package org.footballmanager.pandafootball.system.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.footballmanager.pandafootball.system.domain.enums.FL;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * 图片表
 */
@Entity
@Setter
@Getter
@ToString
public class Photo extends BaseEntity implements Serializable {
	@Column(name = "name", length = 200)
	private String name;
	@Column(name = "dx")
	private Long dx;
	@Column(name = "ext", length = 10)
	private String ext;
	@Column(name = "type")
	private FL type;
	@Column(name = "url", length = 2000)
	private String url;
	@Transient
	private byte[] img;

}